package com.huanghuang.shuadan.common.exception.business;

import com.huanghuang.shuadan.common.exception.ExceptionEnum;

/**
 * @Author suxiaoxiao
 * @Date 2019/7/13 22:57
 * @Version 1.0
 */
public enum BusinessEnum implements ExceptionEnum {

    /**
     * 数据不存在
     */
    DATA_NOT_EXIST("200", "数据不存在");

    private String code;
    private String message;

    BusinessEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
